package com.xj.api.bussiness.news.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xj.api.bussiness.news.service.impl.ITbNewsService;
import com.xj.common.bussiness.news.entity.NewNews;
import com.xj.common.bussiness.news.entity.OneAndNext;
import com.xj.common.bussiness.news.entity.TbNews;
import com.xj.common.bussiness.news.mapper.TbNewsMapper;

/**
 * <p>
 * 栏目管理  服务实现类
 * </p>
 *
 * @author xj
 * @since 2017-01-05
 */
@Service
public class TbNewsServiceImpl extends ServiceImpl<TbNewsMapper, TbNews> implements ITbNewsService {

	@Autowired
	private TbNewsMapper newsMapper;
	
	
	public List<TbNews> idsList(Integer typeId) {
		return newsMapper.idsList(typeId);
	}


	@Override
	public OneAndNext oneAndNext(Integer id) {
		return newsMapper.oneAndNexts(id);
	}


	@Override
	public List<TbNews> slideList(Integer typeId, Integer id) {
		return newsMapper.slideList(typeId, id);
	}


	@Override
	public Integer lastId(Integer id) {
		return newsMapper.lastId(id);
	}


	@Override
	public Integer nextId(Integer id) {
		return newsMapper.nextId(id);
	}
	
	


	/*@Override
	public NewNews getContent(Integer id) {
		return newsMapper.getContent(id);
	}*/
	
/*	@Autowired
	private TbNewsMapper newsMapper;

	@Override
	public List<TbNews> selectListByType(String typeId) {
		return newsMapper.selectListByType(typeId);
	}

	@Override
	public List<TbNews> selectNameAndConverImgListByType(String typeId) {
		return newsMapper.selectNameAndConverImgListByType(typeId);
	}*/
	
}
